﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ExcellentCRM.DataService.Models
{
    /// <summary>
    /// 提醒表(回访提醒)
    /// </summary>
    public class Remind : BaseModel
    {
        public long CreatedId { get; set; }

        public long RemindTargetId { get; set; }

        [DataType(DataType.DateTime)]
        public DateTime RemindTime { get; set; }

        /// <summary>
        /// 提醒内容
        /// </summary>
        [StringLength(300)]
        public string Content { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        [ForeignKey("CreatedId")]
        public Staff CreatedByStaff { get; set; }

        /// <summary>
        /// 提醒目标
        /// </summary>
        [ForeignKey("RemindTargetId")]
        public virtual Staff RemindTarget { get; set; }
    }
}